package com.caogen.cg_wl_kt.ui.login

import android.content.Intent
import android.os.Bundle
import com.caogen.cg_wl_kt.databinding.ActivityRegisterBinding
import com.caogen.cg_wl_kt.utils.PrefUtils
import com.caogen.cg_wl_kt.vmodel.login.RegisterViewModel
import com.quansu.trailertiger.base.BActivity

class RegisterActivity :BActivity<ActivityRegisterBinding,RegisterViewModel>(
    ActivityRegisterBinding::inflate,
    RegisterViewModel::class.java
){
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setListener()
    }

    override fun setListener(){
        binding.btnTest.setOnClickListener {
            var intent = Intent();
            intent.putExtra(PrefUtils.RESULT_NAME,"yd_test1")
            intent.putExtra("test","yd test1")
            setResult(RESULT_OK,intent)
            finish()
        }
    }
}